<?php


namespace app\index\controller;


use think\admin\Controller;
use think\facade\Validate;
use think\facade\Db;

class Release extends Controller
{
    public function article(){
        $uid = 6;
        $data = input('post.');
        $validate = Validate::check($data,[
            'title'     => 'require',
            'content'   => 'require',
            'module'    => 'require|number',
            'cate'      => 'require|number'
        ]);
        if (!$validate){
            $this->error('');
        }


    }

    public function picture(){
        $res = uploadImage(request()->file('image'));
    }


    public function video(){

    }


}